package com.oocl.tm.conponent;

import javax.swing.ButtonGroup;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JRadioButton;

public class IconButton extends JFrame{
	
	public IconButton(){
		this.setSize(300, 200);
		JPanel friendsPanel = new JPanel();
		ButtonGroup btnGroup = new ButtonGroup();
		JRadioButton all = new JRadioButton("ALL", new ImageIcon("on.png"), true);
		JRadioButton f1 = new JRadioButton("f1", new ImageIcon("off.png"));
		all.setBounds(10, 10, 20, 20);
		btnGroup.add(all);
		btnGroup.add(f1);
//		friendsPanel.add(panBtnGroup);
		friendsPanel.setVisible(true);
		this.add(friendsPanel);
		this.setVisible(true);
	}
	
	public static void main(String[] args) {
		new IconButton();
	}
	
	
}
